package cn.javase.base.comclasses._01_字符串;

public class _01_字符串的拼接 {
    public static void main(String[] args) {
        // 1. 字符串动态拼接
        String a = "1";
        String b = "2";
        String c = a + b;
        String d = "12";
        System.out.println(c == d);
        // 2. 字面量拼接
        String e = "1" + "2";
        System.out.println(d == e);
    }
}
